﻿using System;

namespace AMS.DataAccess.BO
{
    [DBTable("TD_City")]
    public class ContactorInfo
    {
        #region Database Column Fields
        [DBPrimaryKeyColumn("AID", true)]
        public int AID { get; set; }

        [DBForignKeyColumn("CustomerID", "TC_Customer")]
        public int CustomerID { get; set; }

        [DBColumn("IDCode")]
        public string IDCode { get; set; }

        [DBColumn("Name")]
        public string Name { get; set; }

        [DBColumn("Name_En")]
        public string Name_En { get; set; }

        [DBColumn("Sex")]
        public string Sex { get; set; }

        [DBDateTime("Birthday", DateTimeType.DateTime, false, false)]
        public DateTime Birthday { get; set; }

        [DBColumn("Department")]
        public string Department { get; set; }

        [DBColumn("Position")]
        public string Position { get; set; }

        [DBColumn("ProvinceId")]
        public int ProvinceId { get; set; }

        [DBColumn("ProvinceName", true, true)]
        public string ProvinceName { get; set; }

        [DBColumn("CityId")]
        public int CityId { get; set; }

        [DBColumn("CityName", true, true)]
        public string CityName { get; set; }

        [DBColumn("Tel")]
        public string Tel { get; set; }

        [DBColumn("Mobile")]
        public string Mobile { get; set; }

        [DBColumn("Fax")]
        public string Fax { get; set; }

        [DBColumn("Email")]
        public string Email { get; set; }

        [DBColumn("Address")]
        public string Address { get; set; }

        [DBColumn("Zipcode")]
        public string Zipcode { get; set; }

        [DBColumn("QQ")]
        public string QQ { get; set; }

        [DBColumn("MSN")]
        public string MSN { get; set; }

        [DBColumn("isFirst")]
        public bool isFirst { get; set; }

        [DBDateTime("CreateDate", DateTimeType.DateTime, true, true)]
        public DateTime CreateDate { get; set; }

        [DBColumn("Version", false, false)]
        public string Version { get; set; }
        #endregion

    }
}

